@extends("/paging_template")
@import com.mgfireworks.mgplatform.mgadmin.sys.model.Dictionary
@args List<Dictionary> dictionaryList
<div id="datatable-responsive_wrapper" class="dataTables_wrapper dt-bootstrap no-footer">
   		<div class="x_panel">
   			<div class="x_title">
              	<h2>字典表列表</h2>
           		<ul class="nav navbar-right panel_toolbox">
               		<li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a></li>
           		</ul>
              <div class="clearfix"></div>
            </div>
            <div class="x_content" style="display: block;">
	           	<div class="row form-horizontal">
	           		<div class="col-sm-4 form-group">
                        <label class="control-label col-sm-3">字典名称</label>
                        <div class="col-sm-9">
                          <input type="text" class="form-control" name="dicName" value="@val("dicName")" placeholder="字典名称">
                        </div>
                    </div>
	           		<div class="col-sm-4 form-group">
                        <label class="control-label col-sm-3">父级编号</label>
                        <div class="col-sm-9">
                          <input type="text" class="form-control" name="parentId" value="@val("parentId")" placeholder="父级编号">
                        </div>
                    </div>
				</div>
	            <div id="div_list_toolbar" class="btn-group">
	            	<button type="submit" class="btn btn-primary btn-lg">查询</button>
			    	<a href="@url("add.html")" class="btn btn-info btn-lg" type="button"><i class="fa fa-plus"></i>添加</a>
			    	<a href="@url("edit.html?dicId={0}")" class="btn btn-info btn-lg" type="button"><i class="fa fa-pencil"></i>修改</a>
			    	<a href="@url("del.json?dicId={0}")" class="btn btn-default btn-lg" type="button"><i class="fa fa-times"></i>删除</a>
		     	</div>
	            <div class="clearfix"></div>
         	</div>
       </div>

	<div class="row">
		<div class="col-sm-12">
			<table id="datatable" class="table table-striped table-bordered dataTable no-footer" role="grid" aria-describedby="datatable_info">
			  <thead>
			    <tr role="row">
			    	<th class="td_row_id">
					</th>
				    <th>字典编号</th>
				    <th>字典名称</th>
				    <th>字典值</th>
				    <th>父级编号</th>
				    <th>描述</th>
			    </tr>
			  </thead>
			  <tbody>
			  @if(dictionaryList){
			  @{int i=0;}
			  @for(Dictionary p : dictionaryList){
			   <tr role="row" class="@(i%2==0?"odd":"event")">
			   @{i++;}
			   	  <td class="td_row_id">
				   	  <div class="checkbox">
                        <label>
                          <div class="iradio_flat-green" style="position: relative;"><input type="checkbox" class="flat" name="__recordId" value="@p.getDicId()" style="position: absolute; opacity: 0;"><ins class="iCheck-helper" style="position: absolute; top: 0%; left: 0%; display: block; width: 100%; height: 100%; margin: 0px; padding: 0px; border: 0px; opacity: 0; background: rgb(255, 255, 255);"></ins></div>
                        </label>
                      </div>
			   	  </td>
				  <td>@p.getDicId()</td>
				  <td>@p.getDicName()</td>
				  <td>@p.getDicValue()</td>
				  <td>@p.getParentId()</td>
				  <td>@p.getDescription()</td>
			    </tr>
			   }
			 }else{
			   <tr role="row">
			      <td colspan="6">暂无数据<i class="fa fa-exclamation-circle"></i></td>
			   </tr>
			 }
			    </tbody>
			</table>	
		</div>
	</div>
	
</div>